/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Pert12;

/**
 *
 * @author admin
 */
public class Pakaian extends Toko{
    private String ukuran;
    private String warna;
    private int discount;

    /**
     * @return the ukuran
     */
    public String getUkuran() {
        return ukuran;
    }

    /**
     * @param ukuran the ukuran to set
     */
    public void setUkuran(String ukuran) {
        this.ukuran = ukuran;
    }

    /**
     * @return the warna
     */
    public String getWarna() {
        return warna;
    }

    /**
     * @param warna the warna to set
     */
    public void setWarna(String warna) {
        this.warna = warna;
    }

    /**
     * @return the discount
     */
    public int getDiscount() {
        return discount;
    }

    /**
     * @param discount the discount to set
     */
    public void setDiscount(int discount) {
        this.discount = discount;
    }
    
    @Override
    public double getHarga()
    {
        return (((100.00-this.discount)/100.00)*super.getHarga());
    }
}
